<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', 'HomeController@index');
Route::get('/about', 'HomeController@about');
Route::get('/contact', 'HomeController@contact');
Route::get('/account', 'HomeController@account');
Route::get('/update', 'HomeController@update');
Route::post('/account', 'HomeController@postupdate');
Route::get('/search', 'HomeController@search');
Route::post('/searchresult', 'HomeController@dosearch');
Route::post('/contact', 'HomeController@store');

Route::get('alumni', 'AlumniController@index');
Route::get('alumni/pending', 'AlumniController@pending');
Route::put('alumni/{id}', 'AlumniController@store');
Route::get('alumni/batch/2011', 'AlumniController@batch11');
Route::get('alumni/batch/2012', 'AlumniController@batch12');
Route::get('alumni/batch/2013', 'AlumniController@batch13');
Route::get('alumni/batch/2014', 'AlumniController@batch14');
Route::get('alumni/{id}', 'AlumniController@profile');
Route::resource('alumni', 'AlumniController');
Route::post('alumni/{id}', 'AlumniController@comment');

Route::get('events', 'EventsController@index');
Route::get('events/create', 'EventsController@create');
Route::get('events/{id}', 'EventsController@details');
Route::post('events', 'EventsController@store');
Route::resource('events', 'EventsController');

Route::get('gallery', 'GalleryController@index');
Route::get('gallery/create', 'GalleryController@create');
Route::get('gallery/upload/{id}', 'GalleryController@upload');
Route::get('gallery/{id}', 'GalleryController@album');
Route::post('gallery', 'GalleryController@storealbum');
Route::post('gallery/{id}', 'GalleryController@storeupload');

Route::controllers([
	'auth' => 'Auth\AuthController',
	'password' => 'Auth\PasswordController',
]);